﻿using SuperX.Common.Helper;
using System;
using System.Collections.Generic;
using System.Text;

namespace SuperX.Helper
{
    public class Response<T> : BaseResponse
    {
        public Response()
        {
        }

        public Response(Response<T> response)
        {
            IsSuccess = response.IsSuccess;
            Data = response.Data;
            RequestId = response.RequestId;
            Error = new Error() { InnerError = response.Error };
            Timestamp = response.Timestamp;
        }

        public T Data { get; set; }

        public DateTime Timestamp { get; set; }
    }
}